package com.unitech.drink.api.beans;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;

/**
 * 创建/修改饮品的请求参数
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class DrinkParam implements Serializable {

    private Long id;
    @NotNull(message = "饮品名不能为空")
    private String name;
    @NotNull(message = "饮品价格不能为空")
    private BigDecimal price;
    private Integer categoryId;
    private LocalDate createTime;
    private String imageUrl;
}
